home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20041116-20060924
/
000299_fdc@columbia.edu_Thu Mar 30 13:18:50 2006.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
4KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: lock down COMMAND & Re-writing Help
Date: 30 Mar 2006 18:17:11 GMT
Organization: Columbia University
Lines: 64
Message-ID: <slrne2o857.ikh.fdc@sesame.cc.columbia.edu>
References: <4UsWf.51347$VV4.838074@ursa-nb00s0.nbnet.nb.ca>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1143742631 27148 128.59.59.56 (30 Mar 2006 18:17:11 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 30 Mar 2006 18:17:11 GMT
User-Agent: slrn/0.9.8.0 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15556
On 2006-03-29, Scott Caissie <scottac@nb.sympatico.ca> wrote:
: 2 situations here.
:
: 1. Help with security here.
:
: I'm looking at a few things to secure the software a bit, which'll cause the
: user to not accidently damage anything.
:
: Is there any way possible to prevent a user from typing anything in the
: COMMAND window? And I don't mean SET TERMINAL ESCAPE-CHARACTER DISABLED.
: That does prevent them from reaching the command window but regardless of
: that, invoking macros (definition macros) will change the screen. During
: that fraction of a second of loading, it is possible for a user to type
: something and have it appear in the prompt. This will prevent a proper
: execution of the macro. Its rare but I want a way to fix that.
:
If they can get to the command window, they can use it. So the best thing
is to prevent them from getting to it.
SET TERMINAL ESCAPE-CHARACTER DISABLED ; Disables ^]c etc
SET KEY 2168 \Kignore ; Disables Alt-x
SET KEY 2136 \Kignore ; Disables Alt-X
SET COMMAND INTERRUPTION OFF ; Disables Ctrl-C
Then, to prevent use of the Tool Bar and Menu Bar for switching to the
Command screen, start K95G.EXE with the following command-line arguments:
--notoolbar --nomenubar
: I'm now adding a number of things at the very beginning of my macros that
: might clear whatever is there:
: ECHO
: CLS
: probably going to put \13 (enter) there as well.
:
: But I do not know the order of how things are processed to know if it'll
: make a difference. I have some doubts that the macro itself can clear the
: junk characters. I have a lot of doubt about preventing a user from ever
: typing in the COMMAND window. Could be possible. Don't know how yet.
:
If the connection is made by a script, then even though the command window
is visible until the connection is complete, and interruption of the script
is disabled SET COMMAND INTERRUPTION OFF, and return to the command screen
from the terminal screen is impossible, then the user should have no
opportunity to interact with the command prompt.
Of course if the connection is broken, then Kermit returns to the command
screen. Therefore your script should contain an EXIT command immediately
after the CONNECT command.
: 2. The help window (Alt H). Can this be edited in any way? I'd like to
: modify it so that it has actual work info in it. We don't actually use
: hotkeys at all.
:
Sorry, no, you can't edit the popup help text. I was about to suggest
redefining the Alt-h key to pop up an ASK /GUI dialog containing the text
of your choice, but that would require assigning a macro to a keystroke,
which, as you know if you followed the recent discussion, does not presently
work, and in any case there's not much room for text in the dialog box, and
the text entry box would be confusing.
Customized help is something to be considered for a future release.
- Frank